package com.lsu.proxy.experiment;


import java.lang.reflect.Proxy;

/**
 * 测试类
 *
 * @Author wang suo
 * @Date 2020/12/31 0031 14:59
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        MyInvocation myInvocation = new MyInvocation();
        Operation operation = new Operation();
        Calculate calculate = (Calculate) Proxy.newProxyInstance(Test.class.getClassLoader(), operation.getClass().getInterfaces(), myInvocation);
        calculate.add();
    }
}
